Repository navigation
Conversation
Signed-off-by: danipiza <dpizarrogallego@gmail.com>
Signed-off-by: danipiza <dpizarrogallego@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #556 +/- ##
=======================================
Coverage 32.29% 32.29%
=======================================
Files 16 16
Lines 576 576
Branches 307 307
=======================================
Hits 186 186
Misses 191 191
Partials 199 199 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Two fixes needed to build and test DDS Router in the DDS Pipe Pro Windows downstream CI, which runs on self-hosted runners and uses Ninja for ccache.
1. Normalize the config schema path to build with Ninja
ddsrouter_yamlregisters its config schema as a configure dependency as${PROJECT_SOURCE_DIR}/../resources/configurations/ddsrouter_config_schema.json. Theconfigure_file()in the YAML validator tests registers the same file again, under its normalized path. Ninja collapses the..and rejects the duplicate when loadingbuild.ninja:The path is now normalized with
get_filename_component(... ABSOLUTE), as DDS Record & Replay already does inddsrecorder_yaml.2. Run the Windows tool tests without
Start-ProcessOn the self-hosted Windows runners, all 4
tool.application.ddsrouter.*tests failed before starting anything:The runners most likely run as a Windows service, with no logged-in user session, and
Start-Process -WindowStyle Hiddenneeds one. GitHub-hosted runners have that session, which is why it passes there.The launcher still runs the test in a separate hidden console.
tests.pysendsCTRL_C_EVENT, which reaches every process attached to the same console, so the test must not share CTest's console. That console is now created by a small Python wrapper usingsubprocesswithCREATE_NEW_CONSOLE, which callsCreateProcessdirectly and doesn't need a user session. The launcher also now reports the configuration file in its error message. The old message used$test_name, which was never set.This aligns the launcher with Fast DDS Spy's (
fastddsspy_tool/test/application/launcher.ps1): neither usesStart-Processany more, so both work on runners without a user session. They still differ in one point. Fast DDS Spy runs Python directly in CTest's console, which works because its tests stop the tool through its input and never send a signal. DDS Router keeps the separate console because its tests check shutdown on Ctrl+C.Tested
ddsrouter_yamlwithBUILD_TESTS=ONfails at the error above. After it, the package configures, builds and passes its tests (38/38).